Skip to main content

Input Dialog

AutomatR.DefaultActivities.Applications.InputDialog

The "InputDialog" activity in AutomatR is designed to present a dialog box to users, soliciting input based on provided configurations. This activity facilitates interaction with users, allowing them to input information through either a text box or a set of predefined options.

Properties

NameDescription
Input
DelaySpecifies the wait time in seconds before executing the activity. Useful for handling synchronization issues. Integer variables containing the delay duration. Example: 5 seconds as "5".
TitleSpecifies the desired display title for the dialog box. String variables containing the title.
LabelSpecifies the label for the input field in the dialog box. String variables containing the label.
Input TypeSelects the input type. Choose "Textbox" for a text input or "Multiple Choice" for predefined options. InputTypes enum.
OptionsSpecifies multiple-choice options as an array of strings. Example: ["Option1", "Option2"]. String array variables.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. Enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
ResultOutputs the user's input as a string variable, enabling the utilization of input for subsequent activities in the workflow. String variables storing the input value.
Output
ResultCaptures the user's input or selection from the input dialog. The type of the result variable depends on the chosen "Input Type" and can be a string or the selected option. Supports a string variable or an object variable based on the input type.

How to use:

  1. Drag and drop the "InputDialog" activity onto the workflow.
  2. Configure the properties by setting the title, label, input type, and options.
  3. Optionally, set the delay and customize the display name.
  4. Execute the workflow to present the input dialog box to users.
  5. The user's input will be stored in the specified result variable for further use in the workflow.

Example:

Consider an example where the "InputDialog" activity is used to prompt the user for their name:

InputDialog:
Display Name: "Get User Name"
Title: "User Input"
Label: "Enter your name:"
Input Type: Textbox
Result: UserName

In this example, the activity displays a dialog box with the title "User Input" and the label "Enter your name." The user inputs their name into the text box, and the result is stored in the variable "UserName" for further use in the workflow.